package cn.edu.hpu.jie.util;

import java.util.HashMap;
import java.util.Map;

public class MimeMap {
	private static final Map<String, String> mime = new HashMap<String, String>();
	
	static {
		mime.put("image/bmp", "bmp");
		mime.put("image/gif", "gif");
		mime.put("image/jpeg", "jpg");
		mime.put("image/png", "png");
	}
	
	public static String getType(String name) {
		return mime.get(name);
	}
}
